package com.yijiu.trb;

import android.graphics.PixelFormat;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * 开户成功页面
 * 
 * @author TangChao
 */
public class OpenAccountDoneActivity extends BTitleActivity implements OnClickListener
{
	/**
	 * 客户管理
	 */
	private Button customerManagementBtn;

	/**
	 * 继续开户
	 */
	private Button goOnBtn;

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		getWindow().setFormat(PixelFormat.RGBA_8888);
		setContentView(R.layout.open_account_done_layout);
		initWidget();
	}

	@Override
	protected void initWidget()
	{
		titleView.setText("开户成功");
		customerManagementBtn = (Button) findViewById(R.id.open_account_done_layout_customer_management_btn);
		customerManagementBtn.setOnClickListener(this);
		goOnBtn = (Button) findViewById(R.id.open_account_done_layout_go_on_btn);
		goOnBtn.setOnClickListener(this);
	}

	@Override
	protected void leftButtonClick()
	{
		super.leftButtonClick();
		finish();
	}

	@Override
	public void onClick(View v)
	{
		switch (v.getId())
		{
			case R.id.open_account_done_layout_customer_management_btn:// 客户管理
				initIntent(this, InvesterManagerActivity.class);
				finish();
				break;
			case R.id.open_account_done_layout_go_on_btn:// 继续开户
				initIntent(this, RegistActivity.class, "flag", "moneyMan");
				finish();
				break;
			default:
				break;
		}
	}
}
